import { get, post, put } from "./http";
import api from "./api";

let register = (data) => post(api.user.register, data);
let login = (data) => post(api.user.login, data);
let detail = (params, headers) => get(api.user.detail, params, headers);
let amend = (data, headers) => put(api.user.amend, data, headers);
let amendpwd = (data, headers) => put(api.user.amend, data, headers);
let addfeeds = (data, headers) => post(api.user.addfeeds, data, headers);
let feeds = (params, headers) => get(api.user.feeds, params, headers);

export { register, login, detail, amend, addfeeds, feeds, amendpwd };
